<?php
class usergroupModel extends RelationModel {
	protected $_link = array(
		'groupdata' => array(
			'mapping_type' => BELONGS_TO,
			'foreign_key' => 'gname',
			'class_name' => 'groupdata',
		),
	);
};

?>